﻿using UnityEngine;
using System.Collections;

public class ReturnToPool : MonoBehaviour
{
	public float m_AfterTime = 1f;

	private void ReturnTimer()
	{
		Invoke("Return", m_AfterTime);
	}

	private void PoolEnable()
	{
		ReturnTimer();
	}

	private void Return()
	{
		PoolManager.Instance.ReturnToPool(gameObject);
	}
}
